package cqrtplm.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

/**
 * @TableName RT_CHANGEAFFECT_ORDERLIST
 */
@TableName(value = "RT_CHANGEAFFECT_ORDERLIST")
public class RtChangeaffectOrderlistDO implements Serializable {
    /**
     * 变更单号
     */
    private String changeno;

    /**
     * 物料编码
     */
    private String partnumber;

    /**
     * 物料类型
     */
    private String parttype;

    /**
     * 工厂
     */
    private String factory;

    /**
     * 订单号
     */
    private String orderno;

    /**
     * 项次
     */
    private String itemno;

    /**
     * 动力成品码
     */
    private String powerproductcode;

    /**
     * 机组成品码
     */
    private String crewproductcode;

    /**
     * 段号
     */
    private String secnumber;

    /**
     * 图样代号
     */
    private String patterncode;

    /**
     * 物料码
     */
    private String materialcode;

    /**
     * 物料用量
     */
    private String quantity;

    /**
     * 机型
     */
    private String model;

    /**
     * 订单数量
     */
    private String orderquantity;

    /**
     * 库存
     */
    private String inventory;

    /**
     * 工单号
     */
    private String ordernumber;

    /**
     * 完工数量
     */
    private String completedquantity;

    /**
     * 客户名称
     */
    private String customer;

    /**
     * 创建时间
     */
    private Date createdate;

    /**
     * 创建人
     */
    private String createby;

    /**
     * 备注
     */
    private String remark;
    /**
     * 开始时间
     */
    private Date startDate;
    /**
     * 完成时间
     */
    private Date completedDate;
    /**
     * 工单创建日期
     */
    private Date orderCreateDate;
    /**
     * 工单创建时间
     */
    private String orderCreateTime;
    /**
     * 查询段号
     */
    private String secNum;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    public String getChangeno() {
        return changeno;
    }

    /**
     *
     */
    public void setChangeno(String changeno) {
        this.changeno = changeno;
    }

    /**
     *
     */
    public String getPartnumber() {
        return partnumber;
    }

    /**
     *
     */
    public void setPartnumber(String partnumber) {
        this.partnumber = partnumber;
    }

    /**
     *
     */
    public String getParttype() {
        return parttype;
    }

    /**
     *
     */
    public void setParttype(String parttype) {
        this.parttype = parttype;
    }

    /**
     *
     */
    public String getFactory() {
        return factory;
    }

    /**
     *
     */
    public void setFactory(String factory) {
        this.factory = factory;
    }

    /**
     *
     */
    public String getOrderno() {
        return orderno;
    }

    /**
     *
     */
    public void setOrderno(String orderno) {
        this.orderno = orderno;
    }

    /**
     *
     */
    public String getItemno() {
        return itemno;
    }

    /**
     *
     */
    public void setItemno(String itemno) {
        this.itemno = itemno;
    }

    /**
     *
     */
    public String getPowerproductcode() {
        return powerproductcode;
    }

    /**
     *
     */
    public void setPowerproductcode(String powerproductcode) {
        this.powerproductcode = powerproductcode;
    }

    /**
     *
     */
    public String getCrewproductcode() {
        return crewproductcode;
    }

    /**
     *
     */
    public void setCrewproductcode(String crewproductcode) {
        this.crewproductcode = crewproductcode;
    }

    /**
     *
     */
    public String getSecnumber() {
        return secnumber;
    }

    /**
     *
     */
    public void setSecnumber(String secnumber) {
        this.secnumber = secnumber;
    }

    /**
     *
     */
    public String getPatterncode() {
        return patterncode;
    }

    /**
     *
     */
    public void setPatterncode(String patterncode) {
        this.patterncode = patterncode;
    }

    /**
     *
     */
    public String getMaterialcode() {
        return materialcode;
    }

    /**
     *
     */
    public void setMaterialcode(String materialcode) {
        this.materialcode = materialcode;
    }

    /**
     *
     */
    public String getQuantity() {
        return quantity;
    }

    /**
     *
     */
    public void setQuantity(String quantity) {
        this.quantity = quantity;
    }

    /**
     *
     */
    public String getModel() {
        return model;
    }

    /**
     *
     */
    public void setModel(String model) {
        this.model = model;
    }

    /**
     *
     */
    public String getOrderquantity() {
        return orderquantity;
    }

    /**
     *
     */
    public void setOrderquantity(String orderquantity) {
        this.orderquantity = orderquantity;
    }

    /**
     *
     */
    public String getInventory() {
        return inventory;
    }

    /**
     *
     */
    public void setInventory(String inventory) {
        this.inventory = inventory;
    }

    /**
     *
     */
    public String getOrdernumber() {
        return ordernumber;
    }

    /**
     *
     */
    public void setOrdernumber(String ordernumber) {
        this.ordernumber = ordernumber;
    }

    /**
     *
     */
    public String getCompletedquantity() {
        return completedquantity;
    }

    /**
     *
     */
    public void setCompletedquantity(String completedquantity) {
        this.completedquantity = completedquantity;
    }

    /**
     *
     */
    public String getCustomer() {
        return customer;
    }

    /**
     *
     */
    public void setCustomer(String customer) {
        this.customer = customer;
    }

    /**
     *
     */
    public Date getCreatedate() {
        return createdate;
    }

    /**
     *
     */
    public void setCreatedate(Date createdate) {
        this.createdate = createdate;
    }

    /**
     *
     */
    public String getCreateby() {
        return createby;
    }

    /**
     *
     */
    public void setCreateby(String createby) {
        this.createby = createby;
    }

    /**
     *
     */
    public String getRemark() {
        return remark;
    }

    /**
     *
     */
    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    public Date getCompletedDate() {
        return completedDate;
    }

    public void setCompletedDate(Date completedDate) {
        this.completedDate = completedDate;
    }

    public Date getOrderCreateDate() {
        return orderCreateDate;
    }

    public void setOrderCreateDate(Date orderCreateDate) {
        this.orderCreateDate = orderCreateDate;
    }

    public String getOrderCreateTime() {
        return orderCreateTime;
    }

    public void setOrderCreateTime(String orderCreateTime) {
        this.orderCreateTime = orderCreateTime;
    }

    public String getSecNum() {
        return secNum;
    }

    public void setSecNum(String secNum) {
        this.secNum = secNum;
    }

    public RtChangeaffectOrderlistDO(String changeno, String partnumber, String parttype, String factory, String orderno, String itemno, String powerproductcode, String crewproductcode, String secnumber, String patterncode, String materialcode, String quantity, String model, String orderquantity, String inventory, String ordernumber, String completedquantity, String customer, String createby, String remark, String orderCreateTime, Date orderCreateDate, Date completedDate, Date startDate, String secNum) {
        this.changeno = changeno;
        this.partnumber = partnumber;
        this.parttype = parttype;
        this.factory = factory;
        this.orderno = orderno;
        this.itemno = itemno;
        this.powerproductcode = powerproductcode;
        this.crewproductcode = crewproductcode;
        this.secnumber = secnumber;
        this.patterncode = patterncode;
        this.materialcode = materialcode;
        this.quantity = quantity;
        this.model = model;
        this.orderquantity = orderquantity;
        this.inventory = inventory;
        this.ordernumber = ordernumber;
        this.completedquantity = completedquantity;
        this.customer = customer;
        this.createby = createby;
        this.remark = remark;
        this.orderCreateTime = orderCreateTime;
        this.orderCreateDate = orderCreateDate;
        this.completedDate = completedDate;
        this.startDate = startDate;
        this.secNum = secNum;
    }

    public RtChangeaffectOrderlistDO(String changeno, String partnumber,String parttype, String secNum) {
        this.changeno = changeno;
        this.partnumber = partnumber;
        this.parttype = parttype;
        this.secNum = secNum;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        RtChangeaffectOrderlistDO other = (RtChangeaffectOrderlistDO) that;
        return (this.getChangeno() == null ? other.getChangeno() == null : this.getChangeno().equals(other.getChangeno())) && (this.getPartnumber() == null ? other.getPartnumber() == null : this.getPartnumber().equals(other.getPartnumber())) && (this.getParttype() == null ? other.getParttype() == null : this.getParttype().equals(other.getParttype())) && (this.getFactory() == null ? other.getFactory() == null : this.getFactory().equals(other.getFactory())) && (this.getOrderno() == null ? other.getOrderno() == null : this.getOrderno().equals(other.getOrderno())) && (this.getItemno() == null ? other.getItemno() == null : this.getItemno().equals(other.getItemno())) && (this.getPowerproductcode() == null ? other.getPowerproductcode() == null : this.getPowerproductcode().equals(other.getPowerproductcode())) && (this.getCrewproductcode() == null ? other.getCrewproductcode() == null : this.getCrewproductcode().equals(other.getCrewproductcode())) && (this.getSecnumber() == null ? other.getSecnumber() == null : this.getSecnumber().equals(other.getSecnumber())) && (this.getPatterncode() == null ? other.getPatterncode() == null : this.getPatterncode().equals(other.getPatterncode())) && (this.getMaterialcode() == null ? other.getMaterialcode() == null : this.getMaterialcode().equals(other.getMaterialcode())) && (this.getQuantity() == null ? other.getQuantity() == null : this.getQuantity().equals(other.getQuantity())) && (this.getModel() == null ? other.getModel() == null : this.getModel().equals(other.getModel())) && (this.getOrderquantity() == null ? other.getOrderquantity() == null : this.getOrderquantity().equals(other.getOrderquantity())) && (this.getInventory() == null ? other.getInventory() == null : this.getInventory().equals(other.getInventory())) && (this.getOrdernumber() == null ? other.getOrdernumber() == null : this.getOrdernumber().equals(other.getOrdernumber())) && (this.getCompletedquantity() == null ? other.getCompletedquantity() == null : this.getCompletedquantity().equals(other.getCompletedquantity())) && (this.getCustomer() == null ? other.getCustomer() == null : this.getCustomer().equals(other.getCustomer())) && (this.getCreatedate() == null ? other.getCreatedate() == null : this.getCreatedate().equals(other.getCreatedate())) && (this.getCreateby() == null ? other.getCreateby() == null : this.getCreateby().equals(other.getCreateby())) && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getChangeno() == null) ? 0 : getChangeno().hashCode());
        result = prime * result + ((getPartnumber() == null) ? 0 : getPartnumber().hashCode());
        result = prime * result + ((getParttype() == null) ? 0 : getParttype().hashCode());
        result = prime * result + ((getFactory() == null) ? 0 : getFactory().hashCode());
        result = prime * result + ((getOrderno() == null) ? 0 : getOrderno().hashCode());
        result = prime * result + ((getItemno() == null) ? 0 : getItemno().hashCode());
        result = prime * result + ((getPowerproductcode() == null) ? 0 : getPowerproductcode().hashCode());
        result = prime * result + ((getCrewproductcode() == null) ? 0 : getCrewproductcode().hashCode());
        result = prime * result + ((getSecnumber() == null) ? 0 : getSecnumber().hashCode());
        result = prime * result + ((getPatterncode() == null) ? 0 : getPatterncode().hashCode());
        result = prime * result + ((getMaterialcode() == null) ? 0 : getMaterialcode().hashCode());
        result = prime * result + ((getQuantity() == null) ? 0 : getQuantity().hashCode());
        result = prime * result + ((getModel() == null) ? 0 : getModel().hashCode());
        result = prime * result + ((getOrderquantity() == null) ? 0 : getOrderquantity().hashCode());
        result = prime * result + ((getInventory() == null) ? 0 : getInventory().hashCode());
        result = prime * result + ((getOrdernumber() == null) ? 0 : getOrdernumber().hashCode());
        result = prime * result + ((getCompletedquantity() == null) ? 0 : getCompletedquantity().hashCode());
        result = prime * result + ((getCustomer() == null) ? 0 : getCustomer().hashCode());
        result = prime * result + ((getCreatedate() == null) ? 0 : getCreatedate().hashCode());
        result = prime * result + ((getCreateby() == null) ? 0 : getCreateby().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", changeno=").append(changeno);
        sb.append(", partnumber=").append(partnumber);
        sb.append(", parttype=").append(parttype);
        sb.append(", factory=").append(factory);
        sb.append(", orderno=").append(orderno);
        sb.append(", itemno=").append(itemno);
        sb.append(", powerproductcode=").append(powerproductcode);
        sb.append(", crewproductcode=").append(crewproductcode);
        sb.append(", secnumber=").append(secnumber);
        sb.append(", patterncode=").append(patterncode);
        sb.append(", materialcode=").append(materialcode);
        sb.append(", quantity=").append(quantity);
        sb.append(", model=").append(model);
        sb.append(", orderquantity=").append(orderquantity);
        sb.append(", inventory=").append(inventory);
        sb.append(", ordernumber=").append(ordernumber);
        sb.append(", completedquantity=").append(completedquantity);
        sb.append(", customer=").append(customer);
        sb.append(", createdate=").append(createdate);
        sb.append(", createby=").append(createby);
        sb.append(", remark=").append(remark);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}